package com.company;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

public class Task4 {


    public static void main(String[] args) {
       //todo 4.编写一段程序使 将List<String>转换为List<Object>；
        List<String> list = new ArrayList<String>();
        list.add("a");
        list.add("b");
        list.add("c");
        list.add("d");
        list.add("e");
        System.out.println(autoConvertType(list));
    }

    private static List<Object> autoConvertType(List<String> list){
        List<Object> strs = (List<Object>)(List)list;
        return strs;
    }



}
